<?php
/**
 * 简单模板函数
 * @author wangtao
 * @version 1.0
 */

class Xtmp
{
	static function readOne($post, $pager)
	{
		$string = '
		<div id="postinfo">
		<h1>%s</h1>
    	<small><a class="postLink" href="%s">查看原文</a>&nbsp;|&nbsp;<a href="/author/%s">%s</a>&nbsp;|&nbsp;%s</small>
    	</div>
   		<div class="PostContent">
    		<div id="contentStyle">%s</div>
    	</div>';
		$txt = sprintf($string, $post['Post_Title'], $post['Post_Link'], $post['Post_Creator'], $post['Post_Creator'], $post['Post_PubDate'], $post['Post_Content']);
		echo $txt . $pager;
	}
}